package com.handle.system.api.feign;

import com.handle.common.core.constants.ServiceNameConstants;
import com.handle.system.api.entity.SysLoginLog;
import com.handle.system.api.entity.SysOperateLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zhangqing
 * @version V1.0
 * @description 操作日志远程调用
 * @date 6/3/2021 4:21 PM
 */
@FeignClient(name = ServiceNameConstants.SYSTEM_SERVICE,path = "/operateLog")
public interface RemoteSystemOperateLog {

    /**
     * 添加登录日志
     * @param sysOperateLog 登录日志对象
     */
    @GetMapping("/addOperateLog")
    void addOperateLog(@RequestBody SysOperateLog sysOperateLog);
}
